Repository navigation
Report no columns for Thrift statements without output - #651
Merged
Merged
Conversation
vuanhphung
temporarily deployed
to
azure-prod
November 26, 2026 04:36 — with
GitHub Actions
Inactive
vuanhphung
temporarily deployed
to
azure-prod
November 26, 2026 04:36 — with
GitHub Actions
Inactive
vuanhphung
temporarily deployed
to
azure-prod
November 26, 2026 04:36 — with
GitHub Actions
Inactive
vuanhphung
force-pushed
the
fix/thrift-ddl-empty-schema
branch
from
December 1, 2026 05:04
ec3f810 to
4298eaf
Compare
vuanhphung
had a problem deploying
to
azure-prod
December 1, 2026 05:04 — with
GitHub Actions
Failure
vuanhphung
had a problem deploying
to
azure-prod
December 1, 2026 05:04 — with
GitHub Actions
Failure
vuanhphung
had a problem deploying
to
azure-prod
December 1, 2026 05:04 — with
GitHub Actions
Failure
vuanhphung
had a problem deploying
to
azure-prod
December 1, 2026 06:31 — with
GitHub Actions
Failure
vuanhphung
had a problem deploying
to
azure-prod
December 1, 2026 06:31 — with
GitHub Actions
Failure
vuanhphung
had a problem deploying
to
azure-prod
December 1, 2026 06:31 — with
GitHub Actions
Failure
For DDL the Thrift server sends a placeholder `Result STRING` column, which can't be told apart from `SELECT 'x' AS Result WHERE 1 = 0`. The Arrow schema in the same response has no fields, so getSchema() and getResultMetadata() now report no columns, matching the kernel backend. getMetadata() still returns the wire response. Without Arrow results the wire is identical and the placeholder is kept. Fixes #309 Co-authored-by: Isaac <no-reply@databricks.com> Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
Decode the Arrow schema once per operation and hand the normalized metadata to the result handlers, so DDL results skip FetchResults. getSchema() goes through an optional IOperationBackend.getSchema() instead of an instanceof check and still works without resultFormat. Tolerate Thrift schemas missing required fields, close operations and the session even when e2e assertions fail, and add a changelog entry. Co-authored-by: Isaac <no-reply@databricks.com> Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
vuanhphung
force-pushed
the
fix/thrift-ddl-empty-schema
branch
from
December 1, 2026 16:56
3e2a557 to
1133cd5
Compare
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 Nit
Looks good, no blocking issues. Raw metadata is kept for getMetadata(), and the normalized copy feeds getSchema(), getResultMetadata(), the result handlers and telemetry. The placeholder check is narrow, and both the prefetched and fetched metadata paths have unit tests.
Other findings
- ⚪ Nit — The
JsonResultHandler.hasMore()empty-schema guard is not reached by the new Arrow normalization, because column-based results keep the server's placeholder schema. It only changes behavior when the schema is missing or empty, and the CHANGELOG doesn't mention it. Add a CHANGELOG line or a PR note. (Found by Claude Opus 5.5 · confirmed by the judge)
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com>
aakash-saravanan-db
approved these changes
Dec 1, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Dec 1, 2026
cathleeny
added a commit
that referenced
this pull request
Dec 3, 2026
Brings in the kernel SOCKS proxy routing (#653) and #651. KERNEL_REV now pins kernel 159a2ff0b69d, which carries both SOCKS and the External header-provider bridge, and native/kernel/index.d.ts matches a binding built from it. CONNECTION_PARAMETERS.md keeps both features' notes. Signed-off-by: Cathleen Yan <58714163+cathleeny@users.noreply.github.com> Co-authored-by: Isaac <no-reply@databricks.com>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #309. Thrift
getSchema()andgetResultMetadata().schemanow return{ columns: [] }for statements without output columns when Arrow metadata confirms there are no fields, matching kernel behavior. This replaces theResult STRINGplaceholder, so callers must checkcolumns.lengthbefore indexing. An empty SELECT retains its actual columns.The deprecated
getMetadata()preserves the Thrift wire response, and responses without Arrow metadata retain the placeholder. Also fixes the existing column-based fetch loop when the schema is empty or missing, with a separate changelog note and operation-level regression coverage.Validation: 119 focused unit tests, type checking, lint, and formatting passed. All eight hang regressions also fail promptly with the old
hasMore()behavior. The live E2E test now checks metadata before and after fetching, including preservation of the legacy placeholder; those expanded assertions await CI.